<?php
	if(isset($_POST['ghchange']))
	$maloaisanpham = $_POST["MaSanPham"];
	$soluong = $_POST["SoLuong"];
	$soluongton = $_POST["SoLuongTon"];
	for($i=1;$i<=$_SESSION["count"];$i++)
	{
		if($_SESSION["sp_id"][$i] == $maloaisanpham)
		{
			$_SESSION["soluong"][$i] = $soluong;
		}
	}
	header("Location:home.php?typ=product&act=seecart");
?>
